import { axios } from '@/utils/request'

/**
 * 查询分页列表
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function childrenPage (parameter) {
  return axios({
    url: '/Children/Page',
    method: 'get',
    params: parameter
  })
}

/**
 * 系统下拉列表
 *
 * @author yubaoshan
 * @date 2020/6/21 23:50
 */
export function childrenList (parameter) {
  return axios({
    url: '/Children/List',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function childrenAdd (parameter) {
  return axios({
    url: '/Children/Add',
    method: 'post',
    data: parameter
  })
}
//children
/**
 * 编辑
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function childrenEdit (parameter) {
  return axios({
    url: '/Children/Edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除系统职位
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function childrenDelete (parameter) {
  return axios({
    url: '/Children/Delete',
    method: 'post',
    data: parameter
  })
}


/**
 * 转班
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function childrenShiftTransfers (parameter) {
  return axios({
    url: '/Children/ShiftTransfers',
    method: 'post',
    data: parameter
  })
}


/**
 * 离班
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function childrenLeaveClass (parameter) {
  return axios({
    url: '/Children/LeaveClass',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除关系
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function childrenDeleteRelation (parameter) {
  return axios({
    url: '/Children/DeleteRelation',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出系统职位
 *
 * @author yubaoshan
 * @date 2021/5/29 16:19
 */
export function sysPosExport (parameter) {
  // return axios({
  //   url: '/sysPos/export',
  //   method: 'get',
  //   params: parameter,
  //   responseType: 'blob'
  // })
}
